/**
 * @Author: Bobby
 * @Date: 2022-02-15 13:14:17
 * @LastEditTime: 2022-03-24 11:30:14
 * @LastEditors: Bobby
 * @Description:
 * @FilePath: \wms-v2\src\ve\common\components\baseComs\form\uiInput.js
 * @CIMC-V2
 */
import { exInput, exRadioGroup, exTextarea, exValidateSelect, exSwitch } from '@ve/common/components/extension'
export default {
  VERSION: '20220408',
  type: 'uiCodemirror',
  name: '代码文本框',
  icon: 'input-cursor-move',
  svg: 'daimakuang',
  //数据别名
  // dataName: 'uiInput_data', 224 117 120
  //数据集合 表单 列表等等
  data: {
    requestData: {},
  },
  extension: {
    model: exInput('Model', 'uiCodemirror_name'),
    label: exInput('标签', '代码文本框'),
    extendRule: exValidateSelect('', {}, []),
    tooltip: exTextarea('弹窗提示', '', '', 3),
    formatting: exSwitch('json格式化', false),
    width: exInput('宽度', 'auto', '填写数字:单位px,auto:自动宽度'),
    labelWidth: exInput('label宽度', 'auto', '填写数字:单位px,auto:自动宽度'),
    type: exRadioGroup('类型', 'x-mysql', [
      {
        value: 'x-mysql',
        label: 'x-mysql数据',
      },
      {
        value: 'json',
        label: 'json数据',
      },
      {
        value: 'javascript',
        label: 'js代码',
      },
    ]),
    height: exRadioGroup('高度', 200, [
      {
        value: 'auto',
        label: 'auto',
      },
      {
        value: 200,
        label: 200,
      },
      {
        value: 300,
        label: 300,
      },
    ]),
    hidden: exSwitch('隐藏', false),
  },
  //交互
  interaction: [],
  //条件、逻辑指令
  logicInstruction: [],
}
